<template>
    <div>
        <ul >
            <li v-for="(el,index) in this.$store.state.unfinishedarr" :key="index" @click="shanchuclick($event)" :id="index" >{{el}}</li> 
        </ul>   
    </div>
</template>

<script>
export default {
   mounted() {
       
   },
   methods: {
       shanchuclick(e){
          this.$store.state.unfinishedarr.splice(e.target.id,1)
          this.$store.state.finishedarr.push(e.target.innerHTML)
       }
   },
}
</script>

<style scoped>
li {
    background-color: red;
}
</style>